home *** CD-ROM | disk | FTP | other *** search
/ Precision Software Appli…tions Silver Collection 4 / Precision Software Applications Silver Collection Volume 4 (1993).iso / organise / snc10.arj / SAMPLE2.SML < prev    next >
Text File  |  1993-02-19  |  2KB  |  85 lines

  1. SAMPLE2.SML
  2.  
  3. Time to play around with a defaults block.
  4.  
  5. :begin_defaults
  6.  
  7. Set some dramatic and faintly vampiric colors
  8. :bg_color black
  9. :fg_color red
  10.  
  11. And some alarm settings.  (Notice how you can
  12. line up command data for easier reading.)  SNC
  13. will warn you that the alarm_time has passed,
  14. and if you import a note with this setting into
  15. your active set, it will trigger its alarm right
  16. away.
  17.  
  18. :alarm        yep
  19. :alarm_time   1/1/93 12:00
  20. :alarm_prefix 0
  21. :alarm_repeat 0
  22. :alarm_sound  yes
  23.  
  24. We'll reset our default size to something bigger.
  25. :w 400
  26. :h 350
  27.  
  28. :end_defaults
  29.  
  30. -----------------------------------------
  31.  
  32. :begin_note
  33.  
  34. This note will inherit the current defaults, which include the
  35. settings in the most recently encountered defaults block.
  36.  
  37. In this note, we want all the text to flow into one paragraph,
  38. so we use the trailing backslash (\) to tell SNC to do just that.
  39.  
  40. :begin_text
  41. Don't forget to call Fred about the thing at the \
  42. place where he saw you-know-who.  Could be embarrasing \
  43. if you forget something that simple.
  44. :end_text
  45.  
  46. :end_note
  47.  
  48. -----------------------------------------
  49.  
  50. Now we'll re-define just some of the defaults from the
  51. previous defaults block.  This demonstrates the "layering"
  52. effect of defaults.
  53.  
  54. :begin_defaults
  55.  
  56. Change the default background color, but we'll inherit the
  57. forground color setting (red, in this case, since we set
  58. it above).
  59.  
  60. :bg_color white
  61.  
  62. All other settings are OK, except the alarm flag.  Let's
  63. turn that one off.
  64.  
  65. :alarm no
  66.  
  67. :end_defaults
  68.  
  69. -----------------------------------------
  70.  
  71. :begin_note
  72.  
  73. Move the note so it doesn't completely cover the first one.
  74.  
  75. :x 100
  76. :y 80
  77.  
  78. :begin_text
  79. The heck with Fred.  Let him worry about \
  80. his own stuff.
  81. :end_text
  82.  
  83. :end_note
  84.  
  85.